package com.quick.config;

import lombok.Data;
//import me.chanjar.weixin.mp.api.WxMpService;
//import me.chanjar.weixin.mp.api.WxMpUserTagService;
//import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
//import me.chanjar.weixin.mp.api.impl.WxMpUserTagServiceImpl;
//import me.chanjar.weixin.mp.config.WxMpConfigStorage;
//import me.chanjar.weixin.mp.config.impl.WxMpMapConfigImpl;
import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Data
@ConfigurationProperties(prefix = QuickWxMpProperties.PREFIX)
@Configuration
public class QuickWxMpProperties {
    public static final String PREFIX = "spring.wechat.mp";

    private String appId;
    private String appSecret;

//    @Bean
//    public WxMpService wxMpService() {
//        WxMpService wxMpService = new WxMpServiceImpl();
//        wxMpService.setWxMpConfigStorage(wxMpConfigStorage());
//        return wxMpService;
//    }
//    @Bean
//    public WxMpConfigStorage wxMpConfigStorage() {
//        WxMpMapConfigImpl wxMpConfigStorage = new WxMpMapConfigImpl();
//        wxMpConfigStorage.setAppId(appId);
//        wxMpConfigStorage.setSecret(appSecret);
//        return wxMpConfigStorage;
//    }
//
//    @Bean
//    public WxMpUserTagService wxMpUserTagService() {
//        return new WxMpUserTagServiceImpl(wxMpService());
//    }
}
